package com.byzk.p2p.admin.user.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import com.byzk.p2p.admin.money.dto.BorrowPaymentDetail;
import com.byzk.p2p.admin.user.dto.User;

public interface UserDao {

	public List<User> listAll(Map<String, Object> queryMap);
	
	public Integer insert(User user);
	
	public Integer update(User user);
	
	public Integer batchUpdate(List<User> users);
	
	public Integer countAll(Map<String, Object> queryMap);
	
	public Integer getAll();
	
	public User getByName(String username);
	
	public List<User> getByUser(User user);
	
	public User getById(Integer id);
	
	public User getCodeById(Integer id);
	
	public Integer delete(Integer id);
	
	public List<User> getUserByInsideInviteCode(String insideInviteCode);
	
	public User getUserByPIpsAcctNo(String pIpsAcctNo);
	
	public List<User> getUserList(User user);
	
	public Integer userAll(User user);

	public User getUserByPhone(String phone);
	
	//查询所用用户
	public List<User> listAll1(Map<String, Object> queryMap);
	
	public  User getUserByTenderUid(BorrowPaymentDetail detail) ;
}
